import request from "../utils/request";
import { Comment } from "@/types/comment";

export function getPlayListComment(params: {
  id: number | string;
  limit: number;
  offset: number;
}) {
  return request<{
    cnum: number;
    code: number;
    commentBanner: any;
    comments: Comment[];
    hotComments: Comment[];
    isMusician: boolean;
    more: boolean;
    topComments: Comment[];
    total: number;
    userId: number;
  }>({
    url: "/comment/playlist",
    params,
  });
}
